<template>
  <router-link to="/search" class="search-container">
    <img
        :src="searchIcon"
        alt="搜索"
        class="image-btn"
    >
    <span class="placeholder-text">前往目的地</span>
  </router-link>
</template>

<script setup>
import searchIcon from '/img/search.png'
</script>

<style scoped>
.search-container {
  position: relative;
  display: block;
  width: 340px;
  max-width: 100%;
  margin-left: 5px;
}

.image-btn {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.placeholder-text {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
}
</style>
